package com.springboot.test6.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.web.bind.annotation.RequestMapping;

public class Application {
	
	@Autowired
	private AuthorSet authorSet;
	
	@RequestMapping("/")
	public String index(){
		return "author name is :"+authorSet.getName()+" age :"+authorSet.getAge();
	}
	
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}
